What is UART(Universal Asynchronous Receiver And Transmitter) ?

Published: 25 September 2021 | Last Updated: 25 September 20215897
UART stands for Universal Asynchronous Receiver and Transmitter (Universal Asynchronous Receiver and Transmitter). In most embedded devices, it is a communication interface that is set up by default. In this article, I will show you the definition, function, application, working principle, advantage, and disadvantage of it.
In this video I explain how UART transmission works.

how does UART work??? (explained clearly)

Topics covered in this article:
Ⅰ. What is UART?
Ⅱ. What's the function of UART?
Ⅲ. What is UART used for?
Ⅳ. What are the advantages and disadvantages of UART?
Ⅴ. What's the working principle of UART?


Ⅰ. What is UART?

UART stands for Universal Asynchronous Receiver and Transmitter. In most embedded devices, it is a communication interface that is set up by default. This is due to the fact that many embedded devices lack a display panel and hence are unable to get real-time data information. They are connected to the HyperTerminal via the UART serial port to print the embedded device's output information. When it comes to tracing and debugging the embedded system, the UART serial interface is a must-have. The serial port is used to configure network routers, switches, and other devices. Many hardware data outputs use the UART serial port. GPS receivers, for example, use the UART serial port to output GPS data.

 

Ⅱ. What’s the function of UART?

Inside the computer, parallel data is used, and the data cannot be delivered straight to the modem. To achieve asynchronous communication, the UART must sort it. The following is the procedure: the CPU first loads the data to be written to the serial device into the UART's register (temporary memory block). The data is then sent to the serial device through FIFO (First Input First Output). If there is no FIFO, the data will get jumbled and unable to transmit to the modem.

It's a control chip for computers and serial devices. It has an RS-232C data terminal device interface, which allows the computer to communicate with modems and other serial devices that use the RS-232C interface. UART additionally supports the following functions as part of the interface: Convert the parallel data from the computer into a serial data stream for output. Convert serial data from the outside of the computer into bytes for use by the computer's parallel data devices. Perform a parity check on the data stream received from the outside and add a parity bit to the output serial data stream. The start-stop mark should be added to the output data stream, and the start-stop mark should be removed from the incoming data stream. Take care of the keyboard or mouse interrupt signal (the keyboard and mouse are also serial devices). Can handle the computer and external serial device synchronization management issue. Buffers for input and output data are available on some high-end UARTs. The 16550 is a newer UART that can keep 16 bytes of data in its buffer before the computer needs to process it, whereas the 8250 is the standard UART. If you buy a built-in modem, it will almost always come with a 16550 UART.

 

Ⅲ. What is UART used for?

Debugging: Detecting system bugs early in the development process is critical. In this case, adding UART can help by capturing messages from the system.

Manufacturing function-level tracing: In the manufacturing industry, logs are quite significant. They decide functions by informing operators about what is going on on the production line.

Updates for customers or clients: Software updates are critical. To have a comprehensive system, you need complete, dynamic hardware with update-capable software.

Testing/verification: Verifying products before they leave the manufacturing process ensures that customers receive the highest quality products available.

 

Ⅳ. What are the advantages and disadvantages of UART?

(1) Advantages:

UARTs are good at transferring and receiving data, despite the fact that there are no perfect communication protocols.

UARTs are simple devices with only two wires.

They have a parity bit that allows them to examine data packets for mistakes.

It is possible if both sides are set up for structural data modification.

UART is a widely-used communication mechanism.

(2) Disadvantages:

The data frame has a 9-bit limit.

The receiving and transmitting UAT's baud rates must be within ten percent of each other.

 

Ⅴ. What’s the working principle of UART?

The data bus sends data to the UART that will transfer it. The data bus is used to deliver data from other devices to the UART (such as CPU, memory, or microcontroller). Data is sent in parallel from the data bus to the sending UART. After receiving parallel data from the data bus, the sending UART creates a data packet by adding a start bit, a parity bit, and a stop bit. The data packet is then serially sent on the Tx pin, bit by bit. On its Rx pin, the receiving UART reads the data stream bit by bit. The data is then converted back to parallel form and the start, parity, and stop bits are removed by the receiving UART. Finally, the data packets are transmitted in parallel to the data bus at the receiving end by the UART:

 WORKING PRINCIPLE.png

Source: Internet

The data sent over UART is divided into packets. Each packet has one start bit, five to nine data bits (depending on the UART), an optional parity bit, and one or two stop bits:

 WORKING2.png

Source: Internet

START BITS

When the UART data transmission line is not transmitting data, it is generally held at a high voltage level. The transmitting UART pulls the transmission line from high to low for one clock cycle to initiate data transfer. When the receiving UART detects a high-to-low voltage transition, it starts reading the bits in the data frame at the baud rate's frequency.

 

FRAME OF DATA

The actual data being sent is contained in the data frame. If a parity bit is employed, it can be anything from 5 to 8 bits long. The data frame can be 9 bits long if no parity bit is used. The data is usually delivered with the least significant bit first.


PARITY

The evenness or oddness of a number is described by parity. The receiving UART uses the parity bit to determine if any data has changed during transmission. Electromagnetic radiation, mismatched baud rates, and long-distance data transmissions can all alter bits. After reading the data frame, the receiving UART counts the number of bits with a value of 1 and determines whether the total is even or odd. The 1 bits in the data frame should amount to an even number if the parity bit is a 0 (even parity). The 1 bits in the data frame should sum to an odd number if the parity bit is a 1 (odd parity).The UART understands that the transmission was error-free when the parity bit matches the data. The UART knows that bits in the data frame have changed if the parity bit is a 0 and the total is odd; or if the parity bit is a 1 and the total is even.

 

STOP BITS

The sending UART drives the data transmission line from a low voltage to a high voltage for at least two-bit lengths to signify the end of the data packet.


UTMEL

We are the professional distributor of electronic components, providing a large variety of products to save you a lot of time, effort, and cost with our efficient self-customized service. careful order preparation fast delivery service

Frequently Asked Questions

1.How many types of UART interrupts are there? And how to implement them?

There are three sorts of UART interrupts: interrupt after sending, interrupt after receiving, and error interrupt.
The transmitting interrupt, like other communication modules, is used to detect when the module has finished sending data. The receive interrupt is used to transfer control to an interrupt function that reads data from the UART module. During the communication process, the error interrupt is used to determine whether the communication module has made an error.

2.What is the difference between UART and serial interface?

A UART is a serial interface that incorporates a UART, however, the serial interface is not always a UART.

3.What does 10-bit UART mean?

10-bit UART means that UART with a bit width of 10 bits can be transmitted, such as 1000010000.

4.How many wires are needed for UART communication?

For duplex, 3 GND, TX, RX.
For simplex, GND, TX, or RX.

5.What is the difference between USART and UART?

UART is ordinary serial communication, USART is universal synchronous/asynchronous serial communication.
Related Articles

  • Discovering New and Advanced Methodology for Determining the Dynamic Characterization of Wide Bandgap Devices
    Discovering New and Advanced Methodology for Determining the Dynamic Characterization of Wide Bandgap Devices
    Saumitra Jagdale15 March 20242180

    For a long era, silicon has stood out as the primary material for fabricating electronic devices due to its affordability, moderate efficiency, and performance capabilities. Despite its widespread use, silicon faces several limitations that render it unsuitable for applications involving high power and elevated temperatures. As technological advancements continue and the industry demands enhanced efficiency from devices, these limitations become increasingly vivid. In the quest for electronic devices that are more potent, efficient, and compact, wide bandgap materials are emerging as a dominant player. Their superiority over silicon in crucial aspects such as efficiency, higher junction temperatures, power density, thinner drift regions, and faster switching speeds positions them as the preferred materials for the future of power electronics.

    Read More
  • Applications of FPGAs in Artificial Intelligence: A Comprehensive Guide
    Applications of FPGAs in Artificial Intelligence: A Comprehensive Guide
    UTMEL29 August 2025537

    This comprehensive guide explores FPGAs as powerful AI accelerators that offer distinct advantages over traditional GPUs and CPUs. FPGAs provide reconfigurable hardware that can be customized for specific AI workloads, delivering superior energy efficiency, ultra-low latency, and deterministic performance—particularly valuable for edge AI applications. While GPUs excel at parallel processing for training, FPGAs shine in inference tasks through their adaptability and power optimization. The document covers practical implementation challenges, including development complexity and resource constraints, while highlighting solutions like High-Level Synthesis tools and vendor-specific AI development suites from Intel and AMD/Xilinx. Real-world applications span telecommunications, healthcare, autonomous vehicles, and financial services, demonstrating FPGAs' versatility in mission-critical systems requiring real-time processing and minimal power consumption.

    Read More
  • Xilinx FPGAs: From Getting Started to Advanced Application Development
    Xilinx FPGAs: From Getting Started to Advanced Application Development
    UTMEL09 September 202520

    This guide is your comprehensive roadmap to understanding and mastering the world of Xilinx FPGA technology. From selecting your first board to deploying advanced AI applications, we'll cover everything you need to know to unlock the potential of these remarkable devices. The global FPGA market is on a significant growth trajectory, expected to expand from USD 8.37 billion in 2025 to USD 17.53 billion by 2035. This surge is fueled by the relentless demand for high-performance, adaptable computing in everything from 5G networks and data centers to autonomous vehicles and the Internet of Things (IoT). This guide will walk you through the key concepts, tools, and products in the Xilinx ecosystem, ensuring you're well-equipped to be a part of this technological revolution.

    Read More
  • Advanced CMOS Devices with Wide Bandgap and Ultrawide Bandgap Technologies
    Advanced CMOS Devices with Wide Bandgap and Ultrawide Bandgap Technologies
    Saumitra Jagdale15 March 20242886

    Power and radio frequency electronics play an increasingly important role in energy-efficient and collaborative future as there is always a demand for faster, smaller, high-voltage and more conductive transistors. Traditionally, silicon has been the semiconductor of choice due to its extensive research and manufacturing history, and natural abundance. While silicon power devices continue to maximize performance, many applications are now integrating wider-band gap semiconductors. These materials offer a significantly higher voltage-conducting capacity, surpassing silicon's limits in tradeoffs related to ON-resistance, capacitances, and breakdown voltage.

    Read More
  • FPGA in Industry and Communication: Key Players, Technologies, and Future Trends
    FPGA in Industry and Communication: Key Players, Technologies, and Future Trends
    UTMEL07 March 20251052

    FPGAs (Field Programmable Gate Arrays) have become the core hardware in the industrial and communication fields due to their programmability and parallel processing capabilities.

    Read More